var app = getApp();

Page({
    data: {
        navH: app.globalData.navHeight,
        content: null
    },
    navBack: function() {
        wx.navigateBack();
    },
    onLoad: function(a) {
        this.showOffNotice(a.id);
    },
    showOffNotice: function(a) {
        var n = this;
        n.data.v_loading || (n.data.v_loading = !0, app.util.request({
            url: "entry/wxapp/showOffNotice",
            showLoading: !1,
            data: {
                id: a
            },
            success: function(a) {
                console.log(a.data), a.data.data.type, n.setData({
                    content: a.data.data
                }), "3" == a.data.data.type && (console.log("aaaaa"), a = a.data.data.url, wx.redirectTo({
                    url: "/first_duoduoke/pages/index/web-view?url=" + encodeURIComponent(a)
                }));
            },
            complete: function() {
                n.data.v_loading = !1;
            }
        }));
    },
    onReady: function() {},
    onShow: function() {},
    onHide: function() {},
    onUnload: function() {},
    onPullDownRefresh: function() {},
    onReachBottom: function() {},
    onShareAppMessage: function() {}
});